import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import {HashRouter} from 'react-router-dom'
import back from '@/utils/back';
import plusReady from '@/utils/plusReady';
import {Provider} from 'react-redux';
import store from '@/redux'
// 将plusReady挂在到组件实例对象原型属性上
React.Component.prototype.$plusReady = plusReady;
React.PureComponent.prototype.$plusReady = plusReady;
back();
let root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
    <HashRouter>
        <Provider store={store}>
             <App/>
             </Provider>
    </HashRouter>
)